package com.fourth.shopping.controller;


import com.fourth.shopping.dto.AdminUserTable;
import com.fourth.shopping.service.AdminUserService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RequestMapping("/master")
@RestController
public class AdministratorController {


    /**
     * 获取系统用户界面的系统用户信息
     */
    @Resource
    AdminUserService adminUserService;
    @GetMapping("getAdminUserDate")
    public List<AdminUserTable> getAdiminUserDate(){
        return adminUserService.getAllAdmin();
    }



}
